//
//  NSObject+CZAddition.m
//  Weibo_Swift
//
//  Created by MT on 2017/5/9.
//  Copyright © 2017年 weibo. All rights reserved.
//

#import "NSObject+CZAddition.h"

@implementation NSObject (CZAddition)
/// 使用字典创建模型对象
///
/// @param dict 字典
///
/// @return 模型对象
+ (instancetype)cz_objectWithDict:(NSDictionary *)dict {
    id obj = [[self alloc] init];
    
    [obj setValuesForKeysWithDictionary:dict];
    
    return obj;
}
@end
